main {
    display: flex;
    justify-content: center;
    width: 100%;
}

.game {
    width: 100%;
    max-width: var(--max-width);
    background-color: #fff;
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 15px 25px;
    background-image: url(../imgs/detail_top_bj.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.game-bakery {
    display: flex;
    height: 35px;
    color: var(--main-color);
}

.game-bakery .home {
    background: url(../imgs/home-fill.svg) no-repeat left;
    background-position: top left;
    background-size: 17px;
    padding-left: 20px;
    margin-left: 0;
}

.game-bakery a {
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.game-menu-content {
    position: relative;
    display: flex;
    align-items: center;
}

.game-menu-content-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.game-menu-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 60px;
    margin-left: 15px;
}

.game-name {
    font-size: 20px;
    font-weight: bold;
}

.game-other {
    display: flex;
    align-items: center;
}

.game-other-rate {
    font-size: 12px;
    color: #999999;
    padding-left: 20px;
    background: url(../imgs/star.svg) no-repeat left;
    background-size: contain;
}

.game-other-tags {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.game-other-tag {
    font-size: 12px;
    color: #fff;
    padding: 0 10px;
    background-color: var(--main-color);
    border-radius: 5px;
    margin-right: 10px;
}

.game-menu .play {
    width: 200px;
    line-height: 40px;
    color: #fff;
    background: linear-gradient(180deg, #FF9A46 0%, #FF4F00 100%);
    box-shadow: 0px 2px 10px 0px #ff4f00;
    cursor: pointer;
}

.game-menu .play.disable {
    background: #f5f5f5;
    box-shadow: var(--shadow);
    color: #1d1d1f;
}

.waterfall {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin-top: 10px;
}

.waterfall-left {
    width: calc(100% - 350px);
}

.waterfall-right {
    width: 336px;
}

.game-desc {
    max-height: 250px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 15px 30px;
    overflow-y: auto;
}

.game-desc h1 {
    font-size: 20px;
    line-height: 40px;
}

.game-desc div {
    font-size: 14px;
    color: #999999;
}

.game-desc::-webkit-scrollbar {
    width: 12px;
    /* 滑动条宽度 */
    height: 12px;
    /* 滑动条高度 */
}

.game-desc::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    /* 滑块颜色 */
    border-radius: 6px;
    /* 滑块圆角 */
}

.game-desc::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* 滑轨颜色 */
    border-radius: 6px;
    /* 滑轨圆角 */
}

.game-recommed {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-gap: 0 20px;
    border-radius: 20px;
    justify-content: center;
    background-color: #fff;
    padding: 20px;
}

.game-recommed h4 {
    text-align: center;
    grid-area: 1 / 1/ 1 span /3 span;
    padding-bottom: 15px;
}

.game-recommed a {
    position: relative;
    display: block;
    margin-bottom: 13px;
}

.game-recommed-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
}

.game-recommed-logo {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.game-recommed-logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 300ms ease-in-out;
}

.game-recommed-name {
    width: 90%;
    font-size: 13px;
    font-weight: bold;
    color: #1d1d1f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.game-recommed-rate {
    font-size: 12px;
    color: var(--main-color);
    padding-left: 17px;
    background: url(../imgs/star.svg) no-repeat left center;
    background-size: 15px;
}

@media screen and (min-width: 768px) {
    .game-recommed a:hover img {
        transform: scale(1.2);
    }
}

@media screen and (max-width: 768px) {
    .game-menu-content {
        flex-direction: column;
    }

    .game-menu .play {
        position: relative;
        top: initial;
        right: initial;
        transform: translateY(0);
        margin-top: 4vmin;
    }

    .game-menu-content-wrapper {
        align-items: center;
    }

    .waterfall {
        flex-direction: column;
    }

    .waterfall-left {
        width: 100%;
    }

    .waterfall-right {
        width: 100%;
    }

    .game-recommed {
        grid-template-columns: repeat(6, 80px);
    }

    .game-recommed h4 {
        text-align: center;
        grid-area: 1 / 1 / 1 span / 6 span;
        padding-bottom: 15px;
    }
}

@media screen and (max-width: 640px) {
    .game-bakery {
        display: none;
    }

    .game-recommed {
        grid-template-columns: repeat(4, 80px);
    }

    .game-recommed h4 {
        text-align: center;
        grid-area: 1 / 1 / 1 span / 4 span;
        padding-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .game-recommed {
        grid-template-columns: repeat(3, 80px);
    }

    .game-recommed h4 {
        text-align: center;
        grid-area: 1 / 1 / 1 span / 3 span;
        padding-bottom: 15px;
    }
}

@media screen and (max-width: 340px) {
    .game-recommed {
        grid-template-columns: repeat(2, 80px);
    }

    .game-recommed h4 {
        text-align: center;
        grid-area: 1 / 1 / 1 span / 2 span;
        padding-bottom: 15px;
    }
}